package com.ruoyi.equ.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 导出到期设备信息 equ_basic
 * 
 * @author ruoyi
 * @date 2020-10-21
 */
public class EquExportExpire extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equName;

    /** 设备唯一性编号 */
    @Excel(name = "设备唯一性编号")
    private String equNum;


    /** 型号 */
    @Excel(name = "型号")
    private String equModel;


    /** 出厂编号 */
    @Excel(name = "出厂编号")
    private String equNoOfpro;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String equManufacturer;


    /** 检定/校准日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检定/校准日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date equDeinvalidity;


    /** 设备检定有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备检定有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date equInvalidity;

    /** 设备状态 */
    @Excel(name = "设备状态", readConverterExp = "1=备用,2=检测中,3=停用,4=报废,5=到期送检,6=空闲,7=丢失")
    private String state;


    public void setEquNum(String equNum) 
    {
        this.equNum = equNum;
    }

    public String getEquNum() 
    {
        return equNum;
    }
    public void setEquName(String equName) 
    {
        this.equName = equName;
    }

    public String getEquName() 
    {
        return equName;
    }
    public void setEquModel(String equModel) 
    {
        this.equModel = equModel;
    }

    public String getEquModel() 
    {
        return equModel;
    }

    public void setEquManufacturer(String equManufacturer) 
    {
        this.equManufacturer = equManufacturer;
    }

    public String getEquManufacturer() 
    {
        return equManufacturer;
    }

    public void setEquInvalidity(Date equInvalidity)
    {
        this.equInvalidity = equInvalidity;
    }

    public Date getEquInvalidity()
    {
        return equInvalidity;
    }

    public void setState(String state)
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }


    public String getEquNoOfpro() {
        return equNoOfpro;
    }

    public void setEquNoOfpro(String equNoOfpro) {
        this.equNoOfpro = equNoOfpro;
    }

    public Date getEquDeinvalidity() {
        return equDeinvalidity;
    }

    public void setEquDeinvalidity(Date equDeinvalidity) {
        this.equDeinvalidity = equDeinvalidity;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("equNum", getEquNum())
            .append("equName", getEquName())
            .append("equModel", getEquModel())
            .append("equManufacturer", getEquManufacturer())
            .append("equInvalidity", getEquInvalidity())
            .append("state", getState())
            .toString();
    }
}
